package com.offcn.order.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 订单项
 *
 * @author 秋林
 * @date 2022/10/16 20:43:07
 */
@ApiModel(description = "OrderItem",value = "OrderItem")
@TableName(value="tb_order_item")
public class OrderItem implements Serializable {

    @ApiModelProperty(value = "",required = false)
    @TableId(type = IdType.INPUT)
    @TableField(value = "id")
    private Long id;

    /**
     * 商品id
     */
    @ApiModelProperty(value = "商品id",required = false)
    @TableField(value = "item_id")
    private Long itemId;

    /**
     * SPU_ID
     */
    @ApiModelProperty(value = "SPU_ID",required = false)
    @TableField(value = "goods_id")
    private Long goodsId;

    /**
     * 订单id
     */
    @ApiModelProperty(value = "订单id",required = false)
    @TableField(value = "order_id")
    private Long orderId;

    /**
     * 商品标题
     */
    @ApiModelProperty(value = "商品标题",required = false)
    @TableField(value = "title")
    private String title;

    /**
     * 商品单价
     */
    @ApiModelProperty(value = "商品单价",required = false)
    @TableField(value = "price")
    private BigDecimal price;

    /**
     * 商品购买数量
     */
    @ApiModelProperty(value = "商品购买数量",required = false)
    @TableField(value = "num")
    private Integer num;

    /**
     * 商品总金额
     */
    @ApiModelProperty(value = "商品总金额",required = false)
    @TableField(value = "total_fee")
    private BigDecimal totalFee;

    /**
     * 商品图片地址
     */
    @ApiModelProperty(value = "商品图片地址",required = false)
    @TableField(value = "pic_path")
    private String picPath;

    @ApiModelProperty(value = "",required = false)
    @TableField(value = "seller_id")
    private String sellerId;




    public Long getId() {  //get方法
        return id;
    }


    public void setId(Long id) {    //set方法
        this.id = id;
    }

    public Long getItemId() {    //get方法
        return itemId;
    }


    public void setItemId(Long itemId) {    //set方法
        this.itemId = itemId;
    }

    public Long getGoodsId() {    //get方法
        return goodsId;
    }


    public void setGoodsId(Long goodsId) {    //set方法
        this.goodsId = goodsId;
    }

    public Long getOrderId() {    //get方法
        return orderId;
    }


    public void setOrderId(Long orderId) {    //set方法
        this.orderId = orderId;
    }

    public String getTitle() {    //get方法
        return title;
    }


    public void setTitle(String title) {    //set方法
        this.title = title;
    }

    public BigDecimal getPrice() {    //get方法
        return price;
    }


    public void setPrice(BigDecimal price) {    //set方法
        this.price = price;
    }

    public Integer getNum() {    //get方法
        return num;
    }


    public void setNum(Integer num) {    //set方法
        this.num = num;
    }

    public BigDecimal getTotalFee() {    //get方法
        return totalFee;
    }


    public void setTotalFee(BigDecimal totalFee) {    //set方法
        this.totalFee = totalFee;
    }

    public String getPicPath() {    //get方法
        return picPath;
    }


    public void setPicPath(String picPath) {    //set方法
        this.picPath = picPath;
    }

    public String getSellerId() {    //get方法
        return sellerId;
    }


    public void setSellerId(String sellerId) {    //set方法
        this.sellerId = sellerId;
    }


}
